package com.zxy.springcloud.service.impl;

import com.zxy.springcloud.service.PaymentHystrixService;
import org.springframework.stereotype.Component;
//熔断降级处理类
@Component
public class PaymentFallbackService implements PaymentHystrixService {
    @Override
    public String paymentInfo_OK(Integer id) {
        return " ---- PaymentFallbackService fal1 back-paymentInfo OK ,0(π_ .π)o";
    }

    @Override
    public String paymentInfo_TimeOut(Integer id) {
        return " -----PaymentFallbackservice fall back-paymentInfo_ TimeOut ,0(τ_ π)o";
    }
}
